<ul>
    <li> <a href="admin.php" <?php if ($page=="") {  ?> class="active"  <?php } ?> ><span>Dashboard</span></a></li>
    <li> <a <?php if ($page=="news_add") {  ?> class="active"  <?php } ?> href="admin.php?page=news_add"><span>Add News</span></a></li>
    <li> <a <?php if ($page=="admin_list") {  ?> class="active"  <?php } ?> href="admin.php?page=admin_list"><span>Admin Management</span></a></li>
    <li> <a <?php if ($page=="cat_list") {  ?> class="active"  <?php } ?> href="admin.php?page=cat_list"><span>Category Management</span></a></li>
    <li><a <?php if ($page=="gallery") {  ?> class="active"  <?php } ?> href="admin.php?page=gallery"><span>Gallery</span></a></li>
    <li><a <?php if ($page=="about") {  ?> class="active"  <?php } ?> href="admin.php?page=about"><span>About Us</span></a></li>
</ul>